Global Index
HTML5 JS API Index > SVG Tutorials & Specs

SVGMarkerElement

Extends SVGElement. Implements SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox.

Properties
const unsigned short
SVG_MARKER_ORIENT_ANGLE = 2
Attribute ‘orient’ has an angle value.
const unsigned short
SVG_MARKER_ORIENT_AUTO = 1
Attribute ‘orient’ has value 'auto'.
const unsigned short
SVG_MARKER_ORIENT_UNKNOWN = 0
The marker orientation is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
const unsigned short
SVG_MARKERUNITS_STROKEWIDTH = 2
The value of attribute ‘markerUnits’ is 'strokeWidth'.
const unsigned short
SVG_MARKERUNITS_UNKNOWN = 0
The marker unit type is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
const unsigned short
SVG_MARKERUNITS_USERSPACEONUSE = 1
The value of attribute ‘markerUnits’ is 'userSpaceOnUse'.
SVGAnimatedString
className
Corresponds to attribute ‘class’ on the given element.
SVGAnimatedBoolean
externalResourcesRequired
Corresponds to attribute ‘externalResourcesRequired’ on the given element. Note that the SVG DOM defines the attribute ‘externalResourcesRequired’ as being of type SVGAnimatedBoolean, whereas the SVG language definition says that ‘externalResourcesRequired’ is not animated.
SVGAnimatedLength
markerHeight
Corresponds to attribute ‘markerHeight’ on the given ‘marker’ element.
SVGAnimatedEnumeration
markerUnits
Corresponds to attribute ‘markerUnits’ on the given ‘marker’ element. One of the Marker Unit Types defined on this interface.
SVGAnimatedLength
markerWidth
Corresponds to attribute ‘markerWidth’ on the given ‘marker’ element.
SVGAnimatedAngle
orientAngle
Corresponds to attribute ‘orient’ on the given ‘marker’ element. If markerUnits is SVG_MARKER_ORIENT_ANGLE, the angle value for attribute ‘orient’; otherwise, it will be set to zero.
SVGAnimatedEnumeration
orientType
Corresponds to attribute ‘orient’ on the given ‘marker’ element. One of the Marker Orientation Types defined on this interface.
SVGAnimatedPreserveAspectRatio
preserveAspectRatio
Corresponds to attribute ‘preserveAspectRatio’ on the given element.
SVGAnimatedLength
refX
Corresponds to attribute ‘refX’ on the given ‘marker’ element.
SVGAnimatedLength
refY
Corresponds to attribute ‘refY’ on the given ‘marker’ element.
CSSStyleDeclaration
style
Corresponds to attribute ‘style’ on the given element. If the user agent does not support styling with CSS, then this attribute must always have the value of null.
SVGAnimatedRect
viewBox
Corresponds to attribute ‘viewBox’ on the given element.
DOMString
xmllang
Corresponds to attribute ‘xml:lang’ on the given element. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised on an attempt to change the value of a read only attribute.
DOMString
xmlspace
Corresponds to attribute ‘xml:space’ on the given element. Exceptions on settingDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised on an attempt to change the value of a read only attribute.
Operations
CSSValue
getPresentationAttribute(DOMString name)
Returns the base (i.e., static) value of a given presentation attribute as an object of type CSSValue. The returned object is live; changes to the objects represent immediate changes to the objects to which the CSSValue is attached. Note: The getPresentationAttribute method is deprecated, and may be dropped from future versions of the SVG specification.
void
setOrientToAngle(SVGAngle angle)
Sets the value of attribute ‘orient’ to the given angle. ParametersSVGAngle angle The angle value to use for attribute ‘orient’. ExceptionsDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised on an attempt to change the value of a read only attribute.
void
setOrientToAuto()
Sets the value of attribute ‘orient’ to 'auto'. ExceptionsDOMException, code NO_MODIFICATION_ALLOWED_ERR Raised on an attempt to change the value of a read only attribute.